package com.sugar.domain.system.privilege;

import java.util.Date;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * @标题：模块(系统)类别实体
 * @描述：
 * @编写者：杨浩泉
 * @日期：2011-6-1 <b>下午03:49:22</b>
 */
@Entity@Table(name="sugar_PrivilegeResourceModel")
public class PrivilegeResourceModel {

	private int m_id ;
	
	private String m_name ;
	
	private String m_desc ;
	
	private Date addTime = new Date() ;
	
	private Set<PrivilegeResourceItem> msrc ;

	@OneToMany(mappedBy="mlist")
	@JoinColumn(name="ml_id")
	public Set<PrivilegeResourceItem> getMsrc() {
		return msrc;
	}

	public void setMsrc(Set<PrivilegeResourceItem> msrc) {
		this.msrc = msrc;
	}

	@Id@GeneratedValue
	public int getM_id() {
		return m_id;
	}

	public void setM_id(int mId) {
		m_id = mId;
	}

	public String getM_name() {
		return m_name;
	}

	public void setM_name(String mName) {
		m_name = mName;
	}

	public String getM_desc() {
		return m_desc;
	}

	public void setM_desc(String mDesc) {
		m_desc = mDesc;
	}

	public Date getAddTime() {
		return addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}
	
}
